package com.sh.learn.manning.springinaction.chapter01.di;

public class KnightOfTheRoundTable1 {
	private String name;
	private HolyGrailQuest quest;

	public KnightOfTheRoundTable1(String name) {
		this.name = name;
		this.quest = new HolyGrailQuest();
	}

	public Object embarkOnQuest() throws GrailNotFoundException {
		return quest.embark();
	}

	public String getName() {
		System.out.print(this.name);
		return name;
	}
}
